<%--
  Created by IntelliJ IDEA.
  User: 吴岳峰
  Date: 2017/11/07
  Time: 14:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <%--<%@ include file="/common/meta.jsp" %>--%>
    <title>雕龙数据</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="${ctx }/static/js/plugins/layer/skin/layer.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/login-DRGs.css">
    <!--[if lte IE 9]>
    <script type="text/javascript" src="${ctx}/static/js/bootstrap-3.3.5/respond.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/bootstrap-3.3.5/html5shiv.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/bootstrap-3.3.5/excanvas.compiled.js"></script>
    <![endif]-->
    <script type="text/javascript" src="${ctx}/static/js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/common.js" ></script>
    <script type="text/javascript" src="${ctx }/static/js/plugins/layer/layer.js"></script>

    <script type="text/javascript" src="${ctx}/static/js/jquery-1.11.2.min.js"></script>
    <title></title>
    <script>
        $(function() {
            if ('${username}' != '') {
                $('#rememberMe').attr('checked','checked');
            }
            if("${paramsError}"){
                layerInfo("${paramsError}");
            }
        })
        function down() {
            if(event.keyCode==13){
                login();
            }
        }
        function login(){
            $.ajax({
                //cache: true,
                type: "POST",
                url:'/user/login',
                data:$('#loginForm').serialize(),
                dataType: 'json',
                //async: false,
                success: function(data) {

                    if(data.success == true){
                        window.location.href = data.url;
                    }else{
                        layerInfo(data.msg);
                    }
                }
            });
        }

    </script>
    <style>
        input::-ms-clear{display:none;}
        .head{
            background: #fff;
            height: 43px;
            padding: 10px 50px;
            line-height: 43px;
            font-size: 20px;
        }
        .head span{
            width: 80px;
            height: 39px;
            display: inline-block;
            margin-right: 10px;
            float: left;
        }
        .head span img{
            width:100%;
        }
        .box{
            top:60px;
        }
    </style>
</head>
<body onkeydown="down()">
<div class="head">
    <span><img src="${ctx}/static/img/login-right_07.png"></span>
    武汉雕龙医疗数据服务股份有限公司
</div>

<div class="box">
    <div class="wenzi">
        <p class="wenzi-one">基于<span><b>DRGs</b></span></p>
        <p class="wenzi-tow">医疗服务绩效评价系统</p>
        <p class="wenzi-t"><span class="dian"></span>（机构版）</p>
    </div>
    <div class="b-login">
        <div class="dl-dlu">欢迎登录！</div>
        <form method="post" id="loginForm">
        <div class="login-y">

            <ul>
                <li style="">
                    <input type="text" name="username" value="${username}" placeholder="请输入用户名" class="yonghuming" id="userName">
                    <label style="position:absolute;top:2px;left:0px;"><img src="/static/img/uesr.png"></label>
                </li>
                <li style="">
                    <input type="password" name="password" placeholder="请输入密码"
                           class="mima" id="txtpwd" autocomplete="off">
                    <label style="position:absolute;top:2px;left:0px;"><img src="/static/img/password.png"></label>
                </li>
            </ul>
            <div class="forget">
                <span class="jizhumima">
                    <input class="checkbox" type="checkbox" id="rememberMe" name="rememberMe"
                           style="position:absolute;top:4px;left: 5px;">
                    <span>记住用户名</span>
                </span>
            </div>
            <a class="denglu" readOnly="true"  onclick="login();"> 登录</a>
            <%--<a class="denglu" href="index-1.html">登录</a>--%>

        </div>
        <input type="hidden" name="client" value=${client}/>
        <input type="hidden" name="syscode" value=${syscode} />
        <input type="hidden" name="dlAdmin" value=${dlAdmin} />
        <input type="hidden" name="ukeynum" id="ukeynum"  />
        <input type="hidden" name="ukey" id="ukey"  />
        </form>
    </div>
</div>
</body>
</html>
